package com.sptpc.learnspring.controller.request;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Getter
@Setter
@ToString
public class OrderItem {
    @NotNull(message = "饮品id不能为空")
    private Long did;
    @NotNull(message = "饮品数量不能为空")
    @Min(value = 1, message = "饮品数量必须大于等于1")
    private Integer quantity;
}
